/**
 *
 */

"use strict";

import React, { Component } from 'react' ;
/**
*   项目使用前端hashHistory控制路由
* */
import { Router, browserHistory } from 'react-router' ;
import { Provider } from 'react-redux' ;

// ===========
// 导入样式库
// ===========
import '../styles/common.scss' ;
import '../styles/h5.scss' ;
// ==================
// 程序路由模块依赖导入
// ==================
import RootRoute from '../routes/RootRoute' ;
// ============
// 导入应用状态机
// ============
import { __STORE__ } from '../store/RootReducers';

class PayegisContainer extends Component{
    render(){
        return(
            //为最高级组建提供顶级状态机
            <Provider store={__STORE__}>
                {/*
                    <Router hostory={路由匹配模式：1、hash，2、bower} routes={路由配置文件}>
                */}
                <Router history={browserHistory} routes={RootRoute}/>
            </Provider>
        )
    }
}

export { PayegisContainer as default } ;
